<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<style>
.formTable{text-align:left;}

</style>
<h1>银行卡鉴权</h1>
<script type="text/javascript" src="${ctx}/pages/templete/js/validate/auth.js"></script>
<form id="form" action="${ctx}/auth/doAuth.do" method="POST" target="_blank" >
	<input type="hidden" name="VerficationCode" value="${config.verficationCode }"/>
	<table width="100%" class="formTable">
		<tr>
			<td width="35%" align=right>版本号:</td>
			<td>
				<select id="version" name="version">
					<option value="2.0" selected >2.0</option>
				 	<!--  <option value="1.1">1.1</option>-->
				</select>
			</td>
		</tr>
		<tr>
			<td align=right>交易代码:</td>
			<td>
				<input type="text" id="tranCode" name="tranCode" value="5555" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="tranCodeTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>企业ID:</td>
			<td>
				<input type="text" id="merchantID" name="merchantID" value="${config.merchantID }" size="50"/>
			</td>
			<td  width="25%"  align=left>
				<font color=red>*</font>
				<span id="merchantIDTip"></span>
			</td>
		</tr>
		
		<tr>
			<td align=right>订单号:</td>
			<td>
				<input type="text" id="merOrderNum" name="merOrderNum" value="" size="50" autoComplete="off"/>
			</td>
			<td width="30%" align=left>
				<font color=red>*</font>
				<span id="merOrderNumTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>企业后台URL:</td>
			<td>
				<input type="text" id="merURL" name="merURL" value="${config.backgroundMerUrl }" style="width:450px;"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="merURLTip"></span>
			</td>
		</tr>
			<tr>
			<td align=right>客户端ip:</td>
			<td>
				<input type="text" id="transLaunchIp" name="transLaunchIp" value="10.10.6.100" style="width:450px;"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="merURLTip"></span>
			</td>
		</tr>
			<tr>
			<td align=right>银行类型:</td>
			<td>
				<select id="bankCode" name="bankCode">
					<option value="GDB" selected >GDB（广发银行）</option>
			        <option value="ABC"  >ABC（农业银行）</option>
			        <option value="BOC"  >BOC（中国银行）</option>
			        <option value="CITIC"  >CITIC（中信银行）</option>
			        <option value="PSBC"  >PSBC（邮政储蓄银行）</option>
			        <option value="CEB"  >CEB（光大银行）</option>
			        <option value="CIB"  >CIB（兴业银行）</option>
			        <option value="CMBC"  >CMBC（中国民生银行）</option>
				</select>
			</td>
			<td align=left>
				<font color=red>*</font>
				<span id="payAcctIdTip"></span>
			</td>
		</tr>
		
		<tr>
			<td align=right>银行卡类型:</td>
			<td>
				<select id="acctType" name=acctType>
					<option value="1" selected >借记卡</option>
			        <option value="2"  >信用卡</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align=right>银行卡绑定手机号:</td>
			<td>
				<input type="text" id="phone" name="phone" value="15001183840" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="phoneTip"></span>
			</td>
		</tr>
			<tr>
			<td align=right>证件类型:</td>
			<td>
				<input type="text" id="certType" name="certType" value="1" readonly="readonly" size="50"/>
			</td>
		</tr>
		<tr>
			<td align=right>银行绑定身份证号:</td>
			<td>
				<input type="text" id="certNo" name="certNo" value="340881198910055112" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="certNoTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>银行开户名:</td>
			<td>
				<input type="text" id="acctName" name="acctName" value="詹姆斯" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="acctNameTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>银行账号:</td>
			<td>
				<input type="text" id="acctNum" name="acctNum" value="6225880150023838" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="acctNumTip"></span>
			</td>
		</tr>
		
		<tr>
			<td align=right>信用卡有效期:</td>
			<td>
				<input type="text" id="acctValty" name="acctValty" value="" size="30"/> 
			</td>
			<td style="color: blue" size="20">格式：yyyymmdd</td>
		</tr>
		<tr>
			<td align=right>信用卡cvv码:</td>
			<td>
				<input type="text" id="acctCvv" name="acctCvv" value="" size="30"/>
			</td>
			<td style="color: blue" size="20"> 请输入3或4位码
			</td>
			<td width="25%" align=left>
				<span id="acctCvvTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>交易时间:</td>
			<td><input type="text" id="tranDateTime" name="tranDateTime" value="${config.tranDateTime }" size="50" /></td>
			<td align=left>
				<font color=red>*</font>
				<span id="tranDateTimeTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>交易备注:</td>
			<td><input type="text" id="description" name="description" value="网关银行卡鉴权测试" size="50" /></td>
		
		</tr>
		
		<tr><td align=right>编码方式:  </td><td><input type="text"  id="charset" name="charset" value="2" size="50"/></td></tr>
		<tr><td align=right></td><td align=center>1:GBK,2:UTF-8 (不填则当成1处理)</td></tr>
		<tr><td align=right>语言种类:  </td><td><input type="text" id=" language" name="language" value="1" size="50"/></td></tr>
		<tr><td align=right></td><td align=center>1:ZH,2:EN</td></tr>
		<tr><td align=right>签名类型:  </td><td><input type="text" id="signType" name="signType" value="1" size="50"/></td></tr>
		<tr><td align=right></td><td align=center>1.md5,2.sha,3.API证书</td></tr>
		<tr><td align=right>商户识别码:  </td><td><input type="text" id="verficationCode" name="verficationCode" value="${config.verficationCode }" size="50"/></td></tr>
		<tr>
			<td colspan=3 width="100%">
				<center>
					<input type="button" value="设置订单" id="defButton" name="defButton"/>&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="submit" name="submit" id="submit" value="开始测试" />
				</center>
			</td>
		</tr>
	</table>
</form>